package com.cxx.admin.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cxx.admin.dto.blog.BlogCategoryDto;
import com.cxx.admin.dto.blog.BlogDto;
import com.cxx.admin.dto.blog.BlogVisitDto;
import com.cxx.admin.entity.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface BlogDao {
    IPage<BlogDto> queryBlogByPage(IPage<Blog> page);

    BlogDto queryBlogById(@Param("id") Long id);

    List<BlogCategoryDto> queryBlogCategory();

    IPage<BlogVisitDto> queryBlogVisit(IPage<Blog> page);
}
